from flask import Flask
from flask_cors import CORS
import os
import sys

# 添加当前目录到 Python 路径
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(current_dir)

from routes.ppt import ppt_bp  # 直接从 routes 导入

app = Flask(__name__)
CORS(app)

# 注册蓝图
app.register_blueprint(ppt_bp)

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True) 